package com.demo.entity;

import javax.persistence.*;

/**
 * Created by lenovo on 2017/6/21.
 */
@Entity
@Table(name = "product")
public class Product {

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Id
    @GeneratedValue
    @Column(name = "id")

    Integer id;

    @Column(name = "name")
    String name;

    @Column(name = "money")
    int money;
}
